WpAssetCleanUp\OptimiseAssets\OptimizeCommon D

Total Complexity 352
Dependencies 17
Dependents 17
Total lines 1,845
Lines of code 1,053
Logical lines of code 681
Comment lines 430
Methods 40
Properties 4

Methods 40

Method Rating Maintainability Complexity Lines of code
clearCache()
D
19
68 174
getAssetCachedData()
C
37 28 61
alterHtmlSource()
B
36 20 78
getLocalCleanSourceFromTag()
B
45 19 37
setAssetCachedData()
A
43 16 42
init()
A
41 13 58
clearAssetCachedData()
A
47 14 30
getLocalAssetPath()
A
48 13 33
getSourceRelPath()
A
45 12 39
getDomLoadedTag()
A
47 11 39
clearJsonStorageForPost()
A
47 11 33
isSourceFromSameHost()
A
49 8 28
markMostRecentAssetFile()
S
57 7 14
getStorageStats()
S
47 5 37
filterStorageFileName()
S
54 6 21
originalContentMarkAsAlreadyMinified()
S
53 6 20
cleanerHtmlSource()
S
56 6 17
maybeAlterHtmlSource()
S
58 6 17
doCombineIsRegularPage()
S
57 6 16
getAnyCdnUrls()
S
59 6 15
loadOptimizedAssetsIfQueryStrings()
S
53 5 21
rmNonEmptyJsonStorageDir()
S
59 5 13
getPathToAssetDir()
S
55 4 19
stripSourceMap()
S
56 4 18
limitAlreadyMarkedAsMinified()
S
56 4 16
doNotClearCache()
S
65 5 9
getTransient()
S
58 4 15
cdnToUrlFormat()
S
60 4 13
getCleanHrefAfterCdnStrip()
S
59 4 13
getAlreadyMarkedAsMinified()
S
57 3 16
setTransient()
S
59 3 15
filterWpContentUrl()
S
63 4 10
clearOtherPluginsCache()
S
68 4 7
removeAlreadyMarkedAsMinified()
S
58 3 15
getMostRecentCachedAssets()
S
61 3 12
appendInlineCodeToCombineAssetType()
S
69 3 6
deleteTransient()
S
64 3 9
getRelPathPluginCacheDir()
S
71 3 5
originalContentIsAlreadyMarkedAsMinified()
S
63 2 9
clearAllCache()
S
80 1 3